package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;


/**
 * 公用图片及文件表Entity
 *
 * @author generator
 * @date 2020-03-12 17:08
 */
@MyTable(value = "DocumentFileEntity", name = "document_file", comment = "公用图片及文件表")
public class DocumentFileEntity extends BaseEntity {
    /**
     * 关联表名称
     */
    @MyColumn(value = "tableName", name = "table_name", comment = "关联表名称", required = true)
    private String tableName;

    /**
     * 关联表主键
     */
    @MyColumn(value = "tableId", name = "table_id", comment = "关联表主键", required = true)
    private Integer tableId;

    /**
     * 业务编码
     */
    @MyColumn(value = "businessCode", name = "business_code", comment = "业务编码")
    private String businessCode;

    /**
     * 文档类别编码
     */
    @MyColumn(value = "documentTypeCode", name = "document_type_code", comment = "文档类别编码", required = true)
    private Integer documentTypeCode;

    /**
     * 文件名称
     */
    @MyColumn(value = "fileName", name = "file_name", comment = "文件名称", required = true)
    private String fileName;

    /**
     * 文件路径
     */
    @MyColumn(value = "filePath", name = "file_path", comment = "文件路径", required = true)
    private String filePath;

    /**
     * 文件大小
     */
    @MyColumn(value = "fileLength", name = "file_length", comment = "文件大小", required = true)
    private Long fileLength;

    /**
     * 文件后缀名
     */
    @MyColumn(value = "fileExtension", name = "file_extension", comment = "文件后缀名", required = true)
    private String fileExtension;

    /**
     * 缩略图路径
     */
    @MyColumn(value = "thumbPath", name = "thumb_path", comment = "缩略图路径")
    private String thumbPath;

    /**
     * 文件描述
     */
    @MyColumn(value = "fileDescribe", name = "file_describe", comment = "文件描述")
    private String fileDescribe;

    /**
     * 文件特定编码
     */
    @MyColumn(value = "fileCode", name = "file_code", comment = "文件特定编码")
    private String fileCode;

    /**
     * 随机码
     */
    @MyColumn(value = "randomCode", name = "random_code", comment = "随机码")
    private String randomCode;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;


    public String getTableName() {
        return tableName;
    }

    public DocumentFileEntity setTableName(String tableName) {
        this.tableName = tableName;
        return this;
    }

    public Integer getTableId() {
        return tableId;
    }

    public DocumentFileEntity setTableId(Integer tableId) {
        this.tableId = tableId;
        return this;
    }

    public String getBusinessCode() {
        return businessCode;
    }

    public DocumentFileEntity setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public Integer getDocumentTypeCode() {
        return documentTypeCode;
    }

    public DocumentFileEntity setDocumentTypeCode(Integer documentTypeCode) {
        this.documentTypeCode = documentTypeCode;
        return this;
    }

    public String getFileName() {
        return fileName;
    }

    public DocumentFileEntity setFileName(String fileName) {
        this.fileName = fileName;
        return this;
    }

    public String getFilePath() {
        return filePath;
    }

    public DocumentFileEntity setFilePath(String filePath) {
        this.filePath = filePath;
        return this;
    }

    public Long getFileLength() {
        return fileLength;
    }

    public DocumentFileEntity setFileLength(Long fileLength) {
        this.fileLength = fileLength;
        return this;
    }

    public String getFileExtension() {
        return fileExtension;
    }

    public DocumentFileEntity setFileExtension(String fileExtension) {
        this.fileExtension = fileExtension;
        return this;
    }

    public String getThumbPath() {
        return thumbPath;
    }

    public DocumentFileEntity setThumbPath(String thumbPath) {
        this.thumbPath = thumbPath;
        return this;
    }

    public String getFileDescribe() {
        return fileDescribe;
    }

    public DocumentFileEntity setFileDescribe(String fileDescribe) {
        this.fileDescribe = fileDescribe;
        return this;
    }

    public String getFileCode() {
        return fileCode;
    }

    public DocumentFileEntity setFileCode(String fileCode) {
        this.fileCode = fileCode;
        return this;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public DocumentFileEntity setRandomCode(String randomCode) {
        this.randomCode = randomCode;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public DocumentFileEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }
}